package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.ContractCompareUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface ContractCompareUserDao {
    Integer insert(ContractCompareUserEntity entity);

    void insertBatch(@Param("list") List<ContractCompareUserEntity> list);

    ContractCompareUserEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(ContractCompareUserEntity entity);

    Integer updateBatch(@Param("list") List<ContractCompareUserEntity> list, @Param("corpid") String corpid);

    List<ContractCompareUserEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}